Changed user login logic to use less expensive touch() method
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Mar 2015 17:59:30 +0000 (10:59 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Mar 2015 17:59:30 +0000 (10:59 -0700)
Change-Id: I5143c381e870d65a1c5bf4cf28ec4abe1bbf3bfe

includes/specials/SpecialUserlogin.php

index f2f6b69..44240d8 100644 (file)
@@ -916,7 +916,7 @@ class LoginForm extends SpecialPage {
                        case self::SUCCESS:
                                # We've verified now, update the real record
                                $user = $this->getUser();
-                               $user->invalidateCache();
+                               $user->touch();
 
                                if ( $user->requiresHTTPS() ) {
                                        $this->mStickHTTPS = true;